<!DOCTYPE html>
<html class="x-admin-sm" lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript" src="../static/js/foxit.ofd.ocx.new.js"></script>
    <script type="text/javascript">
        var obj;

        function fx_init() {
            var width = document.documentElement.clientWidth;
            var height = document.documentElement.clientHeight;
            obj = OFD.OCX.init("foxit_div", width, height);
            obj.ready(obj._id);
            var res = obj.openFile("D:\\file\\a.ofd", false);
            obj.setCompositeVisible("SaveAs", true);
            obj.setCompositeVisible("Print", true);
        }

        /* //插件调用方法
         function initSetting() {
             //obj.setZoomMode('2');
             obj.setPrintInfo(1);
             obj.setCompositeVisible("sign", true);
             obj.setCompositeVisible("SaveAs", true);
             obj.setCompositeVisible("Print", true);
             document.getElementById("btnopen").disabled = false;
             document.getElementById("btnupload").disabled = false;
         }*/


    </script>
</head>

<body onload="fx_init()">

<div id="foxit_div"></div>
</body>
</html>